package org.example.test;

import java.io.*;

public class test6 {
    public static void main(String[] args) throws IOException {
        OutputStream os=new FileOutputStream("E:\\测试文件\\hello.txt");
        String s="你好中国";
        byte[] b=s.getBytes("utf-8");
        os.write(b);
        os.flush();
    }
}
